﻿@model bool
@using Mvc4WebApiKoTb.Helpers.MvcBasic

@{
    var values = new Dictionary<string, object>();
    if (ViewData.ModelMetadata.AdditionalValues.ContainsKey(HtmlTagAttribute.HtmlTagAdditionalValuesKey))
    {
        values = (Dictionary<string, object>)ViewData.ModelMetadata.AdditionalValues[HtmlTagAttribute.HtmlTagAdditionalValuesKey];
    }
    
}

@Html.CheckBox("", (bool)ViewData.TemplateInfo.FormattedModelValue, values)